<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include::header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <form class="form-horizontal m-t" id="signupForm">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">消息类型：</label>
                                <div class="col-sm-8">
                                   <select data-placeholder="选择类别" class="form-control chosen-select" name="msgType" id="msgType" tabindex="2" style="width: 100%">
										<option  value="text">文本</option>
										<option  value="image">图片</option>
										<option  value="video">视频</option>
										<option  value="voice">音频</option>
										<option  value="arith">图文消息</option>
									</select>
                                </div>
                            </div>
                            
                            <div class="form-group"  id="content_textarea">
                                <label class="col-sm-3 control-label">文本内容：</label>
                                <div class="col-sm-8">
                                <textarea style="border-radius:3px" class="form-control valid" id="content" name="content" rows="" cols=""></textarea>
                                </div>
                            </div>
                            
                            
                            <div class="form-group" id="media_library" style="display: none;">
                                <label class="col-sm-3 control-label">选择素材库：</label>
                                <div class="col-sm-8">
                                    <input id="mediaKey" name="mediaKey" class="form-control valid" type="hidden" aria-required="true" aria-invalid="false" >
                                    <input id="mediaId" name="mediaId" class="form-control valid" type="hidden" aria-required="true" aria-invalid="false" >
                                    <input id="state" name="state" value="0"  class="form-control valid" type="hidden" aria-required="true" aria-invalid="false" >
                                    <input id="media" readonly="readonly"  class="form-control valid" type="text" aria-required="true" aria-invalid="false" >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">选择人员：</label>
                                <div class="col-sm-8">
                                    <input id="userId" name="userId" type="hidden">
                                    <input id="groupId" readonly="readonly" class="form-control valid" type="text" aria-required="true" aria-invalid="false" >
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                     <button class="btn btn-info" type="button" onclick="saveMessage(0)">预览</button>
                                     <button class="btn btn-primary" type="button" onclick="saveMessage(1)">发送</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/business/system/wxmessage/add.js"></script>
</body>

</html>
